<html>
<head>
<meta name="Generator" content="tpshop" />
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>商品列表-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/category_list.css"/>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js" ></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/iscroll.css"/>
<script type="text/javascript" src="__STATIC__/js/iscrollv4.2.5.js"></script>
<style>
    .cc_icon{
            position:absolute;
            left:0;
            top:0;
            z-index:100;
            width:60px;
        }
    .label-red{background: red;width:20px;height: 20px;line-height:20px;border-radius: 2px;padding:0px 2px;color:#fff;font-size:11px!important;font-style: normal;text-align: center;}
    .deline{font-size:12px;color:#999; text-decoration: line-through;}
    .label-prom{color:#fff;display: block;width:40px;height: 40px;position: absolute;top:0;background: url(__STATIC__/images/label-prom.png) no-repeat center top;background-size:90%;text-align: center;font-size: 14px;font-weight: bold;line-height: 26px}
    .z-time{position: absolute;bottom: 10px;width:100%;color:#fff;text-align: center;opacity: 0.5;height: 20px;line-height: 20px;text-align: center;}
    .z-time div{display: block;width:93%;background: #D5006A;height: 20px;line-height: 20px;margin:0 auto;}
</style>
<script >
var Tday = new Array();
var daysms = 24 * 60 * 60 * 1000
var hoursms = 60 * 60 * 1000
var Secondms = 60 * 1000
var microsecond = 1000
var DifferHour = -1
var DifferMinute = -1
var DifferSecond = -1

function clock11(key)
{
   var time = new Date()
   var hour = time.getHours()
   var minute = time.getMinutes()
   var second = time.getSeconds()
   var timevalue = ""+((hour > 12) ? hour-12:hour)
   timevalue +=((minute < 10) ? ":0":":")+minute
   timevalue +=((second < 10) ? ":0":":")+second
   timevalue +=((hour >12 ) ? " PM":" AM")
   var convertHour = DifferHour
   var convertMinute = DifferMinute
   var convertSecond = DifferSecond
   var Diffms = Tday[key].getTime() - time.getTime()
   DifferHour = Math.floor(Diffms / daysms)
   Diffms -= DifferHour * daysms
   DifferMinute = Math.floor(Diffms / hoursms)
   Diffms -= DifferMinute * hoursms
   DifferSecond = Math.floor(Diffms / Secondms)
   Diffms -= DifferSecond * Secondms
   var dSecs = Math.floor(Diffms / microsecond)
  
  if(convertHour != DifferHour) e="<span class=hour>"+DifferHour+"</span>天";
   if(convertMinute != DifferMinute) f="<span class=min>"+DifferMinute+"</span>时";
   if(convertSecond != DifferSecond) g="<span class=sec>"+DifferSecond+"</span>分";
     h="<span class=msec>"+dSecs+"</span>秒";
     if (DifferHour>0) {e=e}
     else {e=''}
     //document.getElementById("jstimerBox"+key).innerHTML = e + f + g + h; 
     return (e + f + g + h);
}

</script>
<script type="text/javascript">

    var myScroll,pullDownEl, pullDownOffset,pullUpEl, pullUpOffset;
    var labeltext1="继续上拉,查看详情";
    var labeltext2="";
    var labeltext3="继续上拉,查看详情";
    var generatedCount = 0;


    function pullDownAction () {
        myScroll.refresh(); 
     }

     function pullUpAction () {
       getGoodsList();
        
     }
     var page = 1;
     function getGoodsList(){
      var url = "/index.php?m=Mobile&c=Index&a=ajaxGetMore&p="+page;
      $.ajax({
        type : "get",
        url:url,
        success: function(data)
        {
          console.log(data);
          if(data){
            $("#J_ItemList>ul").append(data);
            page++;
            
          }else{
            
            labeltext3="没有了哦";
          }
          myScroll.refresh(); 
        }
      }); 
     }


    function loaded() {
        pullDownEl = document.getElementById('pullDown');
        pullDownOffset = pullDownEl.offsetHeight;
        pullUpEl = document.getElementById('pullUp'); 
        pullUpOffset = pullUpEl.offsetHeight;

        myScroll = new iScroll('wrapper', {
            useTransition: true,
            topOffset: pullDownOffset,
            onRefresh: function () {
                if (pullDownEl.className.match('loading')) {
                    pullDownEl.className = '';
                    pullDownEl.querySelector('.pullDownLabel').innerHTML = labeltext2;
                } else if (pullUpEl.className.match('loading')) {
                    pullUpEl.className = '';
                    pullUpEl.querySelector('.pullUpLabel').innerHTML = labeltext3;
                }
            },
            onScrollMove: function () {
                if (this.y > 5 && !pullDownEl.className.match('flip')) {
                    pullDownEl.className = 'flip';
                    pullDownEl.querySelector('.pullDownLabel').innerHTML = '释放刷新...';
                    this.minScrollY = 0;
                } else if (this.y < 5 && pullDownEl.className.match('flip')) {
                    pullDownEl.className = '';
                    pullDownEl.querySelector('.pullDownLabel').innerHTML = 'Pull down to refresh...';
                    this.minScrollY = -pullDownOffset;
                } else if (this.y < (this.maxScrollY - 5) && !pullUpEl.className.match('flip')) {
                    pullUpEl.className = 'flip';
                    pullUpEl.querySelector('.pullUpLabel').innerHTML = '释放加载...';
                    this.maxScrollY = this.maxScrollY;
                } else if (this.y > (this.maxScrollY + 5) && pullUpEl.className.match('flip')) {
                    pullUpEl.className = '';
                    pullUpEl.querySelector('.pullUpLabel').innerHTML = labeltext3;
                    this.maxScrollY = pullUpOffset;
                }
            },
            onScrollEnd: function () {
                if (pullDownEl.className.match('flip')) {
                    pullDownEl.className = 'loading';
                    pullDownEl.querySelector('.pullDownLabel').innerHTML = 'Loading...';        
                    pullDownAction(); // Execute custom function (ajax call?)
                } else if (pullUpEl.className.match('flip')) {
                    pullUpEl.className = 'loading';
                    pullUpEl.querySelector('.pullUpLabel').innerHTML = 'Loading...';        
                    pullUpAction(); // Execute custom function (ajax call?)
                }
            }
        });

        setTimeout(function () { document.getElementById('wrapper').style.left = '0'; }, 800);
    }

    //上拉加载关闭开启

    document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

    document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script>
</head>
<body>
<section class="_pre" >
<header id="head_search_box" style="position: fixed; top: 0px; width: 100%;">
<div class="search_header">
    <a href="javascript:history.back(-1)" class="back search_back"></a>
    <div class="search">    
     <form name="sourch_form" id="sourch_form2" method="post" action="{:U("Goods/search")}">
   		<div class="text_box" name="list_search_text_box" onClick="return 1;">
	        <input type="text" class="text" name="q" id="keyword" value="<?php echo I('q'); ?>"  placeholder="搜索关键字"/>
   		</div>
        <input type="button" value="" class="submit"  onclick="if($.trim($('#keyword').val()) != '') $('#sourch_form2').submit();" />        
 	</form>    
    </div>
    <a class="menu filtrate" name="list_go_filter" style=" color:#666">筛选</a>
</div>
</header>
<div class="scroll-wrapper" id="wrapper"> 
  <div id="scroller">
      <div id="pullDown">
           <span class="pullDownIcon"></span><span class="pullDownLabel"></span>
       </div>

      <section>
      <div class="adv">
        <if condition="$qtype eq 'is_recommend'">
        <adv pid='401' limit='1' item='v'>
          <a href="{$v.ad_link}"><img class="lazyslide" src="{$v[ad_code]}" alt="" width="100%"></a>
        </adv>

        <elseif condition="$qtype eq 'is_new'"/>
        <adv pid='402' limit='1' item='v'>
          <a href="{$v.ad_link}"><img class="lazyslide" src="{$v[ad_code]}" alt="" width="100%"></a>
        </adv>
        <elseif condition="$qtype eq 'is_hot'"/>
        <adv pid='403' limit='1' item='v'>
          <a href="{$v.ad_link}"><img class="lazyslide" src="{$v[ad_code]}" alt="" width="100%"></a>
        </adv>
        <elseif condition="$qtype eq 'is_hot'"/>
        <adv pid='403' limit='1' item='v'>
          <a href="{$v.ad_link}"><img class="lazyslide" src="{$v[ad_code]}" alt="" width="100%"></a>
        </adv>
        <elseif condition="$prom_type eq 3"/>
          <a href="{$prom[prom_url]}"><img class="lazyslide" src="{$prom[prom_img]}" alt="" width="100%"></a>
        </if>
      </div>
      </section>
      <section class="filtrate_term" id="product_sort" style="width: 100%;background:#FFF;">
      	<ul>
          <li class="<if condition="($Request.param.sort eq '') or ($Request.param.sort eq 'is_new')">on</if>"><a href="<?php echo add_querystring_var($_SERVER['PHP_SELF'],'sort','is_new');?>">最新</a></li>
      		<li class="<if condition="$Request.param.sort eq 'sales_sum'">on</if>"><a href="<?php echo add_querystring_var($_SERVER['PHP_SELF'],'sort','sales_sum');?>" >销量</a></li>
      		<li class="<if condition="$Request.param.sort eq 'comment_count'">on</if>"><a href="<?php echo add_querystring_var($_SERVER['PHP_SELF'],'sort','comment_count');?>">评论</a></li>
      		<li class="<if condition="$Request.param.sort eq 'shop_price'">on</if>"><a href="<?php echo add_querystring_var($_SERVER['PHP_SELF'],'sort','shop_price').'&sort_asc='.$sort_asc;?>">价格<span class="arrow_up"></span><span class="arrow_down"></span></a></li>
      		<li class=""><a href="javascript:;" class="show_type  show_list">&nbsp;</a></li>
      	</ul>
      </section>
    <section>
    <div class="touchweb-com_searchListBox openList" id="goods_list">
      <empty name="goods_list">
      <p class="goods_title">抱歉暂时没有相关结果，换个筛选条件试试吧</p>
      <else /> 
       <foreach name="goods_list" item="vo" key="k">
         <li>
         
            <a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$vo[goods_id],'u_id'=>$user))}" class="item">
           
    			<div class="pic_box">
    			<img src="{$vo.goods_id|goods_thum_images=400,400}">	
                        <if condition="$vo[is_prom] eq 2 ">
                            <div class="active_box" style="width:20%"><img src="/public/static/images/mobile/cc_icon.png" class="cc_icon"></div>
                            <div class="z-time"><div class="jstimerBox{$vo[goods_id]}"></div></div>
                        </if>
                        <if condition="$vo[is_prom] eq 1 ">
                            <div class="active_box" style="width:20%"><img src="/public/static/images/mobile/cc_icon2.png" class="cc_icon"></div>
                            <div class="z-time"><div class="jstimerBox{$vo[goods_id]}"></div></div>
                        </if>
    				
                        <script>
                        Tday['{$vo[goods_id]}'] = new Date('{$vo.end_time|date="Y/m/d H:i:s",###}');  
                        window.setInterval(function()    
                        {
                          $('.jstimerBox{$vo[goods_id]}').html(clock11('{$vo[goods_id]}'));
                        }, 1000);  
                        </script> 
                        <if condition="$vo[is_prom] eq 3"><div class="label-prom">{$vo.prom_name}</div></if>
    			</div>
    			<div class="title_box">{$vo.goods_name}</div>
    			<div class="price_box">
                               <if condition="$vo[is_prom] eq 2">
                                  <i class="label-red">筹</i>
                               <elseif condition="$vo[is_prom] eq 1"/>
                                     <i class="label-red">秒</i>
                               <elseif condition="$vo[is_prom] eq 3"/>
                                     <i class="label-red">{$vo.prom_name}</i>
                               </if>
                               ￥{$vo.nowprice}<font class="deline">￥{$vo.market_price}</font>
    				
                  <!--   <span class="comment_box" style="float: right;display: block;font-size:12px">已售{$vo.sales_sum}件</span> -->
    			</div>
    			
    		</a>
    		<span class="comment_box" style="display: block;font-size:12px;position: absolute;bottom:10px;padding-left:12px;color:#999">已售{$vo.sales_sum}件</span>
        <span class="bug_car" onClick="AjaxAddCart({$vo[goods_id]},$('#number_'+{$vo.goods_id}).val(),0);"><i class="icon-shop_cart"></i></span>
    	  </li>
       </foreach>
      </empty>
    </div>
    
       <div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem; clear:both">
      	
      </div>  
  
    </section> 
        <div id="pullUp">
           <span class="pullUpIcon"></span><span class="pullUpLabel">继续上拉，加载更多</span>
       </div> 
    </div>
  </div>
  </section>


<script>
window.onscroll=function(){
  if (getScrollTop() +getClientHeight()-getScrollHeight()>80) { 
      ajax_sourch_submit();
    }
}

var  page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {

        page += 1;
		$.ajax({
			type : "GET",
			url:location.href,
      data : {'is_ajax':1,'p':page},
			success: function(data)
			{
				if($.trim(data) == '')
					$('#getmore').hide();
				else
				    $("#goods_list").append(data);
			}
		}); 
 }
</script>


<section class="_next" style="-webkit-transform-origin: 0px 0px 0px; opacity: 1; -webkit-transform: scale(1, 1); display: none;">
	<header>
	    <div class="new_header_2" id="filter_header" >
	        <a href="javascript:;" class="back" id="list_filter_back" ><span>返回</span></a>
	        <h2>筛选</h2>
	    </div>
	</header>
	<section id="filter_content">
	   
	     <form method="post" action="{:U('Goods/search')}"> 
	     <notempty name="filter_brand">    
	       <div class="filtrate_category" >
	            <a href="javascript:;" class="filtrate_category_a">品牌 <span class="up_down">全部展开</span></a>
	       </div>
			<ul class="clearfix filtrate_address filtrate_list att_item" id="brands" style="display: block; -webkit-transform-origin: 0px 0px 0px; opacity: 1; -webkit-transform: scale(1, 1);">
				<foreach name="filter_brand" item="v" key="k">
					<li><a data-href="" href="{$v[href]}" data-key='brand' data-val='{$v[id]}'><i></i>{$v[name]}</a></li>
				</foreach>
			</ul>
	      </notempty>
       
      <!--价格帅选-->
      <if condition="$filter_price neq null">
 
		      	<div class="filtrate_category" >
		            <a href="javascript:;" class="filtrate_category_a">价格<span class="up_down">全部展开</span></a>
		        </div> 
		        <ul class="clearfix filtrate_address filtrate_list att_item">
			       <foreach name="filter_price" item="v" key="k">
			        <li>
			            <a  href="{$v[href]}">{$v[value]}</a>
			        </li>
			        </foreach>
		        </ul>                       
      </if>
     <!--价格帅选 end-->                                            	      
		   <div class="filtrate_has">
			    <h2>其他条件</h2>
				<ul class="clearfix">
				    <li  class="">
				    <label for="">显示全部</label>
				    <input type="radio" name='other_has' id="all_goods" value="1" >
				    </li>
				    <li class="">
				    <label for="">网站自营</label>
				     <input type="radio" name='other_has' id="ziying_goods" value="2" >
				    </li>
				    <li class="">
				    <label for="">入驻商家</label>
				     <input type="radio" name='other_has' id="ruzhu_goods" value="3" >
				    </li>
				</ul>
		   </div>  
		   <div class="filtrate_has1" style="display:none">
		    <h2>是否有货</h2>
		    <ul class="clearfix">	  
			    <li  class="">
			    <label for="">仅显示有货</label>
			    <input type="radio" name='other_youhuo' id="other_youhuo" value='1'>
			    </li>	  
			</ul>
		   </div>
	    <script>
	    $('.filtrate_has li').click(function(){
			$(this).find("input").attr("checked","checked");
			$('.filtrate_has li').removeClass("on");
			$(this).addClass("on");
		})
		
	    $('.filtrate_has1 li').click(function(){
			if($(this).hasClass("on")){
				$(this).find("input").attr("checked","");
				$(this).removeClass("on");	
			}
			else
			{
				$(this).find("input").attr("checked","checked");
				$(this).addClass("on");	
			}	
		})
	    </script>
	    
	    <ul class="filtrate_btn">
	        <li><a href="{:U('Goods/search')}" class="reset" id="clear_btn">取消筛选</a></li>
	        <li> <input class="submit" id="submit_btn" type="submit" value="确定"></li>
	    </ul>
	    </form>
	</section>
</section>
<section id="mix_search_div" style="display: none;">
<header class="con floatsearch">
   <section class="mix_new_header">
        <a href="javascript:void(0)" class="mix_back"></a>
          <form class="set_ip"name="sourch_form" id="sourch_form" method="post" action="{:U('Goods/search')}">
            <div class="search">
                <div class="text_box">
                 <input class="keyword text" name="q" id="q"  placeholder="请输入关键词"  type="text" value="<?php echo I('q'); ?>" />
                </div>
                <span class="mix_submit" onClick="if($.trim($('#q').val()) != '') $('#sourch_form').submit();"></span>
                <a href="javascript:void(0)" class="clear_input" id="clear_input" style="display: block;"></a>
            </div>       
               <input type="button" onClick="if($.trim($('#q').val()) != '') $('#sourch_form').submit(); else alert('输入搜索词');" value="搜索" class="mix_filtrate">      
        </form>
    </section>
    <section class="mix_search_list"></section>
    <section class="mix_recently_search"><h3>热门搜索</h3>
     <ul>
            <foreach name="tpshop_config.hot_keywords" item="wd" key="k">
               <li><a href="{:U('Goods/search',array('q'=>$wd))}" <if condition="$k eq 0">class="ht"</if>>{$wd}</a></li>
            </foreach>     
      </ul>
     </section>
    <div class="spacer"></div>
</header>
</section>
<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/filter.min.js"></script>
<script>
$(document).ready(function(){
        //筛选浮层显示控制
        var filtrate = $(".filtrate"), submit = $(".submit,.back,.reset");
        filtrate.bind("click", function () {
            $("._next").show();
            $("._pre").hide();
            window.scrollTo(0, 0);
        });
        submit.bind("click", function () {
            $("._next").hide();
            $("._pre").show();
        });
        //初始化筛选浮层
        bizFilter.init();
});

function goods_cut($val){  
	var num_val=document.getElementById('number_'+$val);  
	var new_num=num_val.value;  
	var Num = parseInt(new_num);  
	if(Num>1)Num=Num-1;  
	num_val.value=Num;  
} 

function goods_add($val){ 
	var num_val=document.getElementById('number_'+$val);  
	var new_num=num_val.value;  
	var Num = parseInt(new_num);  
	Num=Num+1;  
	num_val.value=Num;  
}
</script>
<script>
    $(function(){
        //搜索浮层显示逻辑
        var sbox = $("#head_search_box"),
                sort = $('#product_sort'),
                g_list = $("#goods_list"),
                g_m1 = "0", g_m2 = "96px";
        var initCss = function (type) {
            if (type == 1) {
                sort.css({"position":"static","width":"100%"});
                g_list.css("margin-top", g_m1);
            } else {
                sort.attr("style", "");
                g_list.css("margin-top", g_m2);
            }
        };
        var m = {
            input: $("#keyword"),
            rawAll: '',
            dd: $(".text_box"),
            cancel: $(".mix_back"),
            rawKey: '请输入商品名称 货号',
            main: function () {
                this.init();
                this.be();
            },
            init: function () {
                this.rawAll = this.input.val();
            },
            be: function () {
                var _this = this;
                this.input.focus(function () {
                    var mix_search = $("#mix_search_div");
                    if (mix_search.length > 0) {
                        $("._pre").hide();
                        mix_search.show();
                        $("#keyword1").focus();
                        return;
                    }
                    var newKey = _this.input.val();
                    if (newKey != _this.rawKey && newKey != _this.rawAll) {
                        $(this).val(newKey);
                    } else {
                        $(this).val(_this.rawKey);
                    }
                    if ($(window).scrollTop() > 0) {
                        initCss(1);
                        window.scrollTo(0, 0);
                        _this.dd.trigger("click");  //for ddclick
                    }
                })
				.blur(function () {
                            var newKey = _this.input.val();
                            if (newKey === _this.rawKey) {
                                $(this).val(_this.rawAll);
                            } else {
                                $(this).val(newKey);
                            }
                        });
                this.cancel.bind("click", function () {
                    $("#mix_search_div").hide();
                    $("._pre").show();
                });
				document.getElementById("clear_input").onclick = function() {
		            $("#mix_search_div").hide();
                    $("._pre").show();
				}
            }
        };
        m.main();
        $(window).resize(function () {
            sbox.css("width", "100%");
            sort.css("width", "100%");
        });
		 //顶部sticky效果
        setTimeout(function () {
            var sboxH = sbox.height();
            var sortH = sort.height();
            var sortStart = sort.offset().top - sboxH;
            var showEnd = sort.offset().top;
            var init = function () {
                sbox.css({"position":"fixed", "top":"0"});
                window.scrollTo(0, 0);
            };
            var rawScroll = 0, nowScroll = 0;
            var upOrDown = function () {
                var delta = 30;
                if (nowScroll > rawScroll + delta) {
                    return 1;
                } else if (nowScroll < rawScroll - delta) {
                    return 2;
                } else {
                    return 0;
                }
            };
            var sticky = function () {
                nowScroll = $(window).scrollTop();
                if (nowScroll >= sortStart) {
                    sort.css({"position":"fixed","top":sboxH,"background":"#fff"});
                    g_list.css({"margin-top":sortH});
                } else {
                    sort.attr("style", "");
                    g_list.attr("style", "");
                }
                if (nowScroll > showEnd + sortH) {
                    var up = upOrDown();
                    if (up == 1) {
                        if (sbox.css("display") != "none") {
                            sbox.hide();
                            sort.hide();
                        }
                        rawScroll = nowScroll;
                    } else if (up == 2) {
                        if (sbox.css("display") == "none") {
                            sbox.show();
                            sort.show();
                        }
                        rawScroll = nowScroll;
                    }
                } else {
                    if (sbox.css("display") == "none") {
                        sbox.show();
                        sort.show();
                    }
                }
            };
            init();
            $(document).on("touchmove", sticky);
            $(window).on("scroll", sticky);
        }, 500);
 
	});
    
    $('.show_type').bind("click", function() {
        if ($('#goods_list').hasClass('openList')){
    		$('#goods_list').removeClass('openList');
    		$(this).removeClass('show_list');
        $('.active_box').css('width','35%');
        $('.label-prom').css({'font-size':'12px','width':'30px','height':'30px'})
        $('.pic_box').css('overflow','inherit');
        $('.z-time').css({'width':'120%','left':'97px','font-size':'12px','opacity':'0.8'});
    	}
    	else
    	{
    		$('#goods_list').addClass('openList');	
    		$(this).addClass('show_list');
    	}
    });    
</script>
<script type="text/javascript">
function get_brand(brand_id)
{
	document.getElementById('brand').value = brand_id;
	var obj = document.getElementById('brands').getElementsByTagName('li');
	for(var i=0;i<obj.length;i++)
	{
		obj[i].className = '';
	}
	document.getElementById('brand_'+brand_id).className = 'on';
}
function get_price(price_min,price_max)
{
	document.getElementById('price_min').value = price_min;
	document.getElementById('price_max').value = price_max;
	var obj = document.getElementById('prices').getElementsByTagName('a');
	for(var i=0;i<obj.length;i++)
	{
		obj[i].className = '';
	}
	document.getElementById('price_'+price_min).className = 'on';
}

function checkSearchForm()
{
    if(document.getElementById('keywords').value)
    {
	//var frm  = document.getElementById('searchForm');
	//var type = parseInt(document.getElementById('searchtype').value);
	//frm.action = type==0 ? 'search.php' : 'stores.php';
        return true;
    }
    else
    {
		alert("请输入关键词！");
        return false;
    }
}
</script>
<script type="Text/Javascript" language="JavaScript">
<!--
function selectPage(sel)
{
  sel.form.submit();
}
//-->
</script>
<script type="text/javascript">
window.onload = function()
{
//  Compare.init();
  //fixpng();
}
</script>
<footer><include file="public/footer_nav"/></footer>
<script>
function goTop(){
	$('html,body').animate({'scrollTop':0},600);
}
</script>
<a href="javascript:goTop();" class="gotop" style=" z-index:9999"><img src="__STATIC__/images/topup.png"></a> 
</body>
</html>